<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAppVersions extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('app_versions', function (Blueprint $table) {
            $table->increments('id');
            $table->string('versionname')->comment('版本名称');
            $table->string('versioncode', 16)->comment('版本号');
            $table->string('type', 16)->comment('andriod/ios');
            $table->string('url')->comment('文件地址');
            $table->string('description', 512)->comment('描述');
            $table->tinyInteger('isforce')->default(0)->comment('是否强制升级');
            $table->integer('adminid')->comment('操作人id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
